
package com.example.musicapi.common.util;

import lombok.Data;

/**
 * @author 
 */
@Data
public class RecommendItem implements Comparable<RecommendItem> {
	private String id;
	private int score;

	public RecommendItem(){

	}
	
	public RecommendItem(String id, int score) {
		this.id = id;
		this.score = score;
	}

	@Override
	public int compareTo(RecommendItem o) {
		return score > o.score ? -1 : 1;
	}
}